import Vue from 'vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
// import echarts from 'echarts'
//import 'element-ui/lib/theme-default/index.css'
import './assets/theme/default/index.css'
import routes from './routerConfig'
import VuexStore from './store/index'

import App from './App.vue'
// Vue.use(echarts)
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(Vuex)
//定义路由
const router = new VueRouter({routes})
const store=new Vuex.Store(VuexStore)

Vue.config.devtools = process.env.NODE_ENV !== 'production'
/*
Vue.config.keyCodes = {
  f11: 122,
}*/
new Vue({
  el:'#app',
  router,
  store,
  render: h => h(App)
})
